package com.junerain.springboot.opeurekaserver.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Junerain
 * @Description:
 * @Date:Created in 10:13 2018/7/27
 * @Modified By:
 */

@Slf4j
@RestController
public class SampleController {

    @RequestMapping("/junerain")
    String index(@RequestParam(value = "userName") String userName) {
        log.error("测试下日志显示问题!!!");
        System.out.println("嘿嘿!");
        return "Spring Boot！ " + userName;
    }
}
